#!/usr/bin/env python
# -*- coding: utf8 -*-
# ping.py

import re
"""
Function attributes:
* load: boolean. Optional. If False the function will not load.
* name: string. Optional.
* priority: string. Optional. Three values are available: "high", "medium" or "low",
  default value: "medium".
* thread: boolean. Optional. If True, function will work by starting a thread.
* rule: string or regexp object. Required.
* aliases: list of string or regexp objects. Optional.
* sentence: boolean. Optional. If True, pattern is searched on whole message, else
  pattern is a command, the message must begin with a sign.
"""
from core.ircfuncs import check_access
def skip_smileys_(bot, evt, cmd):
	if (check_access(bot, "admin") or check_access(bot, "owner")) and evt.msg.lower() == ":p":
		print "DONT SKIP, go to part_chan()!!!"
		return False
	return True
skip_smileys_.rule=re.compile(r"^:'?-?~?([?(\)[\]Dd9PpXx\\|]{1,2}|\{})$|^%-}.*$")
skip_smileys_.fullmsg=True
skip_smileys_.priority="skip"

def skip_punctuation_(bot, evt, cmd):
	return True
skip_punctuation_.rule=re.compile(r"^[\.!?]{3,}.*$")
skip_punctuation_.fullmsg=True
skip_punctuation_.priority="skip"
